import request from '@/utils/request'

enum API {
  loginUrl = '/login',
  likeUrl = '/goods/relevant',
}
// 获取一级导航分类数据
export const loginAPI = (data: any) =>
  request.post<any, any>(API.loginUrl, data)
// 猜你喜欢接口
export const getLikeListAPI = ({ limit = 4 }) =>
  request.get<any, any>(API.likeUrl, { params: { limit } })
